package main

import (
	"fmt"
	"log"
)

type test111 struct {
}

func failOnError(err error, msg string) {
	if err != nil {
		log.Fatalf("%s:%s", msg, err)
		panic(fmt.Sprintf("%s:%s", msg, err))
	}
}

//func main() {
//
//	dial, err := amqp.Dial("amqp://guest:guest@localhost:5672/")
//	failOnError(err, "amqp.Dial")
//	//ch, err := dial.Channel()
//	failOnError(err, "dial.Channel() err")
//
//	//ch.failOnError(err, "ch.QueueDeclare err")
//	fmt.Println(q.Name)
//}
